package com.tangguo.vshop.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.tangguo.vshop.domain.Customer;
public interface CustomerRepository extends MongoRepository<Customer, String> {

	Page<Customer> findByHelpcodeLikeOrNameLike(String helpcode, String name, Pageable pageable);

	Page<Customer> findByMainbody(String mainbodyId, Pageable pageable);

}
